package org.dromara.netbar.domain.bo;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * @author ZhouWenTao
 * @create 2025-07-04 16:13
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class NetbarMemberLoginBo extends BaseEntity {

    private String tenantId;
    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 客户端ID
     */
    private Long clientId;

    /**
     * 座位类型ID
     */
    private Long seatTypeId;

    /**
     * MAC地址
     */
    private String macAddress;

    /**
     * 身份证/唯一标识
     */
    @NotNull(message = "账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String account;

    /**
     * 登录密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;
}
